<%--
  Created by IntelliJ IDEA.
  User: HP
  Date: 2023/10/7
  Time: 10:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>欢迎页面</title>
</head>
<body>
    <h1>JSP欢迎你！</h1>
    <%
        //1. 为请求添加属性
        request.setAttribute("test","hello");
        //2. 移除属性
        request.removeAttribute("test");
        //3. 为session添加属性
        session.setAttribute("hello","world");
        //4. 移除session属性
        session.removeAttribute("hello");
        //5. 为application添加属性值
        application.setAttribute("app","myApp");
        //6. 为application移除属性值
        application.removeAttribute("app");
    %>
</body>
</html>
